<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DIY教程</title>
<style type="text/css">
	body {font-size: 12px;}
	#step .line{border-bottom: dotted 1px gray;padding-top: 5px}
</style>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript">

	$(function(){
		$.ajax({
			type : "POST",
			url : "/huyanqi-frontWar/rest/course/findCourseByCsid.json",
			dataType : "JSON",
			data : {"diy":${param.did}},
			success : function(msg) {
				var data = msg.courseListResp.data;
				if(data){
					for(var i=0;i<data.length;i++){
						$("#step").append("<div><p>第"+(i+1)+"步    ："+data[i].csContent+"</p></div>");
						if(data[i].csImg){
							$("#step").append("<img src='http://192.168.8.100:8081/course/"+data[i].csImg+"'/>")
						}
						$("#step").append("<div class='line'/>");
					}
				}
			}
		});
	})

</script>
</head>
<body>

<div id="step">
	
</div>

</body>
</html>